import request from '@/utils/request'
// 商品列表
const fetchCateLists = (params = {}) => request.get('/cateLists', { params })
// 新增商品分类
const addCate = (params = {}) => request.post('/addCate', params)
// 获取商品分类详情
const getCateDetail = (params = {}) => request.get('/getCateDetail', { params })
// 修改商品分类
const updateCate = (params = {}) => request.put('/updateCate', params)
// 删除商品
const delCate = (params = {}) => request.delete('/delCate', { params })
export {
  fetchCateLists,
  addCate,
  getCateDetail,
  updateCate,
  delCate
}
